<template>
	<view>
		<button @click="onlog()">console.log</button>
		<button @click="ondebug()">console.debug</button>
		<button @click="oninfo()">console.info</button>
		<button @click="onwarn()" type="warn" >console.warn</button>
		<button @click="onerror()" type="warn">console.error</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title : '打印日志'
			}
		},
		methods: {
			onlog(){
				console.log("onlog()-->"+this.title);
				//clog
				console.log("clog");
				//clogv
				console.log('this.title: ',this.title);
				//,
				
			},
			onwarn(){
				if(name="ljp"){
					console.log("成功");
				}
				else{
					console.warn("");
				}
			},
			onerror(){
					console.warn("onWarn")
								if(true){
									console.log("快出错了");
										console.warn("快出错了");
								}else{
								
								}
			},
			
		}
	}
</script>

<style>

</style>
